<div class="personas view">
<h2><?php  __('Persona');?></h2>
	<table<?php $i = 0; $class = ' class="altrow"';?>
>
		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['id']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Nombres'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['nombres']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Apellidos'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['apellidos']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Cedula'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['cedula']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Rif'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['rif']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Telefono'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['telefono']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Correo'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['correo']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Fl Ingreso'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['fl_ingreso']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Fl Egreso'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['fl_egreso']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Fecha Nacimiento'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['fecha_nacimiento']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Razon Social'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['razon_social']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Sw Activo'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['sw_activo']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Salario'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['salario']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Telefono Movil'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['telefono_movil']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Cooperativa'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['cooperativa']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Sw Tipo'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['sw_tipo']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Correo2'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['correo2']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Correo3'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['correo3']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Nro Cert'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $persona['Persona']['nro_cert']; ?>
			&nbsp;
		</td>
		</tr>	</table>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Persona', true), array('action' => 'edit', $persona['Persona']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Persona', true), array('action' => 'delete', $persona['Persona']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $persona['Persona']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Personas', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Persona', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Usuarios', true), array('controller' => 'usuarios', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Usuario', true), array('controller' => 'usuarios', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Usuarios');?></h3>
	<?php if (!empty($persona['Usuario'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Usuario'); ?></th>
		<th><?php __('Clave'); ?></th>
		<th><?php __('Persona Id'); ?></th>
		<th><?php __('Sw Activo'); ?></th>
		<th><?php __('Rol Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($persona['Usuario'] as $usuario):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $usuario['id'];?></td>
			<td><?php echo $usuario['usuario'];?></td>
			<td><?php echo $usuario['clave'];?></td>
			<td><?php echo $usuario['persona_id'];?></td>
			<td><?php echo $usuario['sw_activo'];?></td>
			<td><?php echo $usuario['rol_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'usuarios', 'action' => 'view', $usuario['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'usuarios', 'action' => 'edit', $usuario['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'usuarios', 'action' => 'delete', $usuario['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $usuario['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Usuario', true), array('controller' => 'usuarios', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
